package rmmk.zadanie1;

import java.util.ArrayList;
import java.util.HashMap;

import org.junit.Test;

public class Experiments {

	@Test
	public void experiment1()
	{
		HashMap<Integer, ArrayList<Long>> values = new HashMap<Integer, ArrayList<Long>>();
		int from = 10000;
		int upTo = 50000;
		int step = 5000;
		
		for(int size = 10000; size <= 50000; size+=5000)
		{
			SortingManager sm = new SortingManager();
			
			sm.addAlg(new Recursively());
			
			ArrayList<Long> ret = sm.analize(DataSource.getNormal(size));
			
			values.put(size, ret);
		}
		
		LatexOutput lx = new LatexOutput();
		lx.printLatexOutput("normal", values);
		values.clear();
		
		for(int size = 10000; size <= 50000; size+=5000)
		{
			SortingManager sm = new SortingManager();
			
			sm.addAlg(new Recursively());
			
			ArrayList<Long> ret = sm.analize(DataSource.getPesymistic(size));
			
			values.put(size, ret);
		}
		
		LatexOutput pesym = new LatexOutput();
		lx.printLatexOutput("pesym", values);
	}
}
